/*
 * @Description: 申请成为合伙人
 * @Author: iamsmiling
 * @Date: 2021-06-12 16:40:48
 * @LastEditTime: 2021-06-14 17:28:16
 */

import 'package:credit_business_circle/R/R.dart';
import 'package:flutter/material.dart';

class InvitationActionCard extends StatelessWidget {
  const InvitationActionCard({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      margin: EdgeInsets.only(
          left: R.dimen.dp13, right: R.dimen.dp13, top: R.dimen.dp56),
      alignment: Alignment.center,
      padding: EdgeInsets.only(
          left: R.dimen.dp18,
          right: R.dimen.dp18,
          top: R.dimen.dp56,
          bottom: R.dimen.dp34),
      decoration: BoxDecoration(
          color: R.color.fffff9ef,
          borderRadius: BorderRadius.circular(R.dimen.sp12)),
      child: Stack(
        alignment: AlignmentDirectional.center,
        children: [
          Positioned(
            top: 0,
            child: Transform.translate(
              offset: Offset(0, -(R.dimen.dp16 + R.dimen.dp56)),
              child: Stack(
                alignment: AlignmentDirectional.center,
                children: [
                  Image.asset(R.image.invitationHook),
                  Text(
                    "申请合伙人",
                    style: TextStyle(
                        fontSize: R.dimen.sp20,
                        color: R.color.ffffffff,
                        fontWeight: FontWeight.w600),
                  )
                ],
              ),
            ),
          ),
          Column(
            children: [
              Container(
                margin: EdgeInsets.only(bottom: R.dimen.dp28),
                child: Text(
                  "成为信商圈合伙人，赚取高额分佣",
                  style: TextStyle(
                      fontSize: R.dimen.sp16,
                      color: R.color.ff111111,
                      fontWeight: FontWeight.w600),
                ),
              ),
              Container(
                alignment: Alignment.center,
                // margin: EdgeInsets.symmetric(horizontal: R.dimen.dp75),

                child: Container(
                  padding: EdgeInsets.symmetric(vertical: R.dimen.dp13),
                  decoration: BoxDecoration(
                      color: R.color.ff05a9f5,
                      borderRadius: BorderRadius.circular(R.dimen.sp34)),
                  width: R.dimen.dp200,
                  child: Row(
                    mainAxisAlignment: MainAxisAlignment.center,
                    mainAxisSize: MainAxisSize.min,
                    children: [
                      Container(
                        margin: EdgeInsets.only(right: R.dimen.dp10),
                        child: Text(
                          "申请",
                          style: TextStyle(
                              fontSize: R.dimen.sp18,
                              color: R.color.ffffffff,
                              fontWeight: FontWeight.w600),
                        ),
                      ),
                      Image.asset(R.image.goApply)
                    ],
                  ),
                ),
              ),
            ],
          )
        ],
      ),
    );
  }
}
